com.cete.dynamicpdf
Class TagOptions


Example:The following example shows how to create a tagged PDF document.

import com.cete.dynamicpdf.*;
import com.cete.dynamicpdf.pageelements.*;
 
public class MyClass{
      public static void main(String args[]){
          
          // Create a PDF Document
          Document document = new Document();

          // Specify document as a tagged PDF
          document.setTag(new TagOptions());
         
          // Create a page and add it to the document
          Page page = new Page();
	  document.getPages().add(page);

          // Add a label to the page
          page.getElements().add(new Label("My Tagged PDF Document", 0, 0, 512, 40, Font.getHelvetica(), 30, TextAlign.CENTER));

          //Save the PDF
          document.draw("[PhysicalPath]/MyDocument.pdf" );
      }
}